function yz=yanzhan(X,nObj, nVar)

sum=0;
for i=1:1:nObj
    s1=min(X(:,nVar+i));
    s2=max(X(:,nVar+i));
    sum=sum+(s2-s1)^2;
end
yz=sqrt(sum);
               
            